Skip to content

HBASE-27900. [HBOSS] Open file fails with NumberFormatException for S3AFileSystem#39

Open
steveloughran wants to merge 1 commit into
apache:masterfrom
steveloughran:HBASE-27900-openfile-float
Open

HBASE-27900. [HBOSS] Open file fails with NumberFormatException for S3AFileSystem#39
steveloughran wants to merge 1 commit into
apache:masterfrom
steveloughran:HBASE-27900-openfile-float

Conversation

@steveloughran

Copy link
Copy Markdown
Contributor

This corrects the same bug as HADOOP-18724; overloading of setter by different number types can cause problems. This patch converts all supplied double/float args to long before setting -exactly what the hadoop change does.

Change-Id: Iba5e4966f3260ffb132c70bb9490ceb57198f9cc

@virajjasani virajjasani left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a few nits

/**
* sets the long value.
* @since Hadoop-3.3.6
* Method added in HADOOP-18274.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo? HADOOP-18724


/**
* Set optional double parameter for the Builder.
* @since Hadoop-3.3.6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we mention HADOOP-18724 for all comments with @since Hadoop-3.3.6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants